package com.qingyouchuxing.order.biz.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.qingyouchuxing.order.api.enums.OrderPayType;
import com.qingyouchuxing.order.api.enums.OrderStatus;
import com.qingyouchuxing.order.api.enums.OrderType;
import com.ruoyi.common.orm.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 商品对象 order
 *
 * @author hans
 * 2024-09-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "order")
public class Order extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Id
    private Long id;


    /**
     * 订单类型(0:产品订单)
     */
    private OrderType orderType;

    /**
     * 订单金额
     */
    private BigDecimal price;

    /**
     * 订单状态
     */
    private OrderStatus status;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 支付方式
     */
    private OrderPayType payType;

    /**
     * 备注
     */
    private String remark;
    /**
     * 收货地址ID
     */
    private String fkAddressId;
}
